package com.wms.dss.ats.customs.abb.plc;

import com.ricosoft.common.dao.dataSource.EntityDAO;
import com.wms.dss.ats.customs.abb.schedule.DDJService;

import java.util.Hashtable;

public class ReadDDJ_PLC {

    public static void read(Hashtable<String, Object> m_hsSysParam, EntityDAO dao) {


        DDJService DDJService1 = new DDJService(DDJService.DDJ_IP_ADDRESS_1, 502,dao);
        DDJService1.ddjDevice.btId = 1;
        DDJService DDJService2 = new DDJService(DDJService.DDJ_IP_ADDRESS_2, 502,dao);
        DDJService2.ddjDevice.btId = 2;
        DDJService DDJService3 = new DDJService(DDJService.DDJ_IP_ADDRESS_3, 502,dao);
        DDJService3.ddjDevice.btId = 3;
        DDJService DDJService4 = new DDJService(DDJService.DDJ_IP_ADDRESS_4, 502,dao);
        DDJService4.ddjDevice.btId = 4;
        DDJService DDJService5 = new DDJService(DDJService.DDJ_IP_ADDRESS_5, 502,dao);
        DDJService5.ddjDevice.btId = 5;
        DDJService DDJService6 = new DDJService(DDJService.DDJ_IP_ADDRESS_6, 502,dao);
        DDJService6.ddjDevice.btId = 6;
        DDJService DDJService7 = new DDJService(DDJService.DDJ_IP_ADDRESS_7, 502,dao);
        DDJService7.ddjDevice.btId = 7;
        DDJService DDJService8 = new DDJService(DDJService.DDJ_IP_ADDRESS_8, 502,dao);
        DDJService8.ddjDevice.btId = 8;

        m_hsSysParam.put("ddj1", DDJService1);
        m_hsSysParam.put("ddj2", DDJService2);
        m_hsSysParam.put("ddj3", DDJService3);
        m_hsSysParam.put("ddj4", DDJService4);
        m_hsSysParam.put("ddj5", DDJService5);
        m_hsSysParam.put("ddj6", DDJService6);
        m_hsSysParam.put("ddj7", DDJService7);
        m_hsSysParam.put("ddj8", DDJService8);

    }
}
